package se.thoka.twt.client.utils.validation;

/**
 * @author Thobias Karlsson, Thoka
 * @since 8 jan 2010
 */
public interface Validation {
	/**
	 * @return The description of the validation rule.
	 */
	public String getDescription();

	/**
	 * Validates the supplied value.
	 * 
	 * @param value The value.
	 * @return <code>true</code> if valid
	 */
	public abstract boolean validate(String value);
}
